package main;

public class ObservableB implements Observable {
    private String name;
    public ObservableB(String name){
        this.name=name;
    }
    /**
     * 通知具体的观察者进行更新
     *
     * @param message
     **/
    @Override
    public void updaet(String message) {
        System.out.println(this.name+message);
    }
}
